
package hospital;

import java.io.Serializable;
import java.util.Scanner;

public class Message implements Serializable{
	protected String Command = null; 
	protected String Data =null;
	
	public String getCommand() {
		return Command;
	}
	public void setCommand(String command) {
		Command = command;
	}
	public String getData() {
		return Data;
	}
	public void setData(String data) {
		Data = data;
	}

    public static String leiaTexto(){  // função para ler uma string
			String txt;
			Scanner entrada = new Scanner(System.in); 
			txt = entrada.next();
			return (txt);    
}}
